/*------------------------------------------------------------------------------
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
--------------------------------------------------------------------------------
This program was written for Afflatus Techtronics - Resource section.

Project                 : USART communication on PIC18Fxxx
File                    : McalUsart.h
Code type	        : Code Module

Controller	        : PIC18Fxxx
XTAL frequency     	: 8MHz [Internal]
Compiler and IDE	: MCC18 with MPLab IDE

Author                  : Ashwin Vijayakumar
Current Occupation      : Computer Engineering Graduate student @ WMU, Kalamazoo
                          , Michigan

Start Date              : Jan-15-2010
Validation Date    	: Jan-15-2010

--------------------------------------------------------------------------------
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
------------------------------------------------------------------------------*/

/**@cond -----------------------------------------------------------------------
 * Includes section
 * Add all #include here.
 * ----------------------------------------------------------------- @endcond */

/**@cond System headers -------------------------------------------- @endcond */

/**@cond Local headers --------------------------------------------- @endcond */
#include "Std_Types.h"
#include "Platform_Types.h"

// -----------------------------------------------------------------------------
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// USART routines ~~~~~~~~~~~~~~~~~~~~~~
// -----------------------------------------------------------------------------

/* Initialize USART serial communication */
void McalUart_Init(void);

/* Send a character through the USART port */
void McalUart_Putc( char character );

/* Send a string (NULL terminated) of characters */
void McalUart_Puts( char *string );

/* Send a string (NULL terminated) of characters*/
void McalUart_Putrs(const rom char *string);

/* Receive a character */
unsigned char McalUart_Getc(void);

/* Receive a string of characters */
void McalUart_Gets( volatile uint8_t *str, unsigned int len, Std_BoolType echo );

// -----------------------------------------------------------------------------
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// USART routines ~~~~~~~~~~~~~~~~~~~~~~
// -----------------------------------------------------------------------------
